package com.avit.tv.kui.utils;

import com.avit.tv.kui.BuildConfig;

/**
 * @author 自定义log
 * @date 2020/6/11
 */
public class Log {
    private static final boolean isDebug = BuildConfig.DEBUG;

    public static void e(String tag, Object object){
        if (isDebug){
            android.util.Log.e(tag, object.toString());
        }
    }

    public static void e(Object object){
        if (isDebug){
            e(object.getClass().getName(), object);
        }
    }

    public static void e(Object tag,Object msg){
        if (isDebug){
            e(tag.getClass().getName(), msg);
        }
    }

    public static void w(String tag, Object object){
        if (isDebug){
            android.util.Log.w(tag, object.toString());
        }
    }

    public static void w(Object object){
        if (isDebug){
            w(object.getClass().getName(), object);
        }
    }

    public static void w(Object tag,Object msg){
        if (isDebug){
            w(tag.getClass().getName(), msg);
        }
    }

    public static void i(String tag, Object object){
        if (isDebug){
            android.util.Log.i(tag, object.toString());
        }
    }

    public static void i(Object object){
        if (isDebug){
            i(object.getClass().getName(), object);
        }
    }

    public static void i(Object tag,Object msg){
        if (isDebug){
            i(tag.getClass().getName(), msg);
        }
    }

    public static void d(String tag, Object object){
        if (isDebug){
            android.util.Log.d(tag, object.toString());
        }
    }

    public static void d(Object object){
        if (isDebug){
            d(object.getClass().getName(), object);
        }
    }

    public static void d(Object tag,Object msg){
        if (isDebug){
            d(tag.getClass().getName(), msg);
        }
    }
}
